<jsp:useBean id="sessiondata" class="bibbletex.models.SessionData"
	scope="session" />

<%@ page
	import="bibbletex.models.*,java.util.UUID,java.util.List"
	import="bibbletex.views.CollaborationView,bibbletex.controllers.CollaborationController"
	import="bibbletex.helpers.BibtexFormat" %>	

<%!
	String page_title = new String("Invite people to collaborate");
	String onloadjsfunction = "";
	boolean show_title = true;
%>
<%
	String id_parameter = request.getParameter("cid");
	Collaboration c = null;
	
	if (id_parameter == null)
	{
		if (sessiondata.collaboration != null)
			c = sessiondata.collaboration;
	}
	else
	{
		c = CollaborationController.load(id_parameter);
		sessiondata.collaboration = c;
	}
	
%>
<%@ include file="/header.jsp"%>

<% if (c != null) { %>

<form action="/collaboration/process.jsp" method="post">

<table id="emails">
	<tr>
		<td>E-Mail</td>
		<td>Private</td>
	<tr>
	<tr>
		<td><input type="email" name="email1" placeholder="friend@domain.com" /></td>
		<td><input type="checkbox" name="private1" /></td>
	</tr>
</table>

<input type="button" value="+" />

	<div class="form-line submit-center">
		<input type="submit" value="Save" />
	</div>

</form>

<% } else { %>

<p>Unable to load Collaboration</p>

<% } %>

<%@ include file="/footer.jsp"%>